package net.ericaro.neojavagen.expressions ;
import net.ericaro.neojavagen.expressions.ConditionalExpression;
import net.ericaro.neojavagen.expressions.Expression;
import net.ericaro.neojavagen.expressions.ConditionalOrExpression ;

/**
* *<pre> QuestionMarkConditionalExpression :
    ConditionalOrExpression ? Expression : ConditionalExpression
</pre>
*/
public class QuestionMarkConditionalExpression  implements ConditionalExpression {

ConditionalOrExpression conditionalorexpression;
Expression expression;
ConditionalExpression conditionalexpression ;

public QuestionMarkConditionalExpression( ConditionalOrExpression conditionalorexpression, Expression expression, ConditionalExpression conditionalexpression ){
	this.conditionalorexpression = conditionalorexpression; this.expression = expression; this.conditionalexpression = conditionalexpression ;
	}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( this.conditionalorexpression ).append(" ");
stringbuilder.append( "?" ).append(" ");
stringbuilder.append( this.expression ).append(" ");
stringbuilder.append( ":" ).append(" ");
stringbuilder.append( this.conditionalexpression ).append(" ") ;
	return stringbuilder.toString();
}

}
